#ifndef _DevicesBursh_H_
#define _DevicesBursh_H_


#define BRUSH_OUTPUT_CHANNEL_SIDE  0x01
#define BRUSH_OUTPUT_CHANNEL_ROLL  0x02



#define BRUSH_PWM_PRESCALER 9
#define BRUSH_PWM_FREQUENCY 210
#define BRUSH_PWM_PERIOD    (SystemCoreClock / BRUSH_PWM_PRESCALER / BRUSH_PWM_FREQUENCY)



#define cBrushRollSetSpeed(speed) do{ TIMER_CH0CV(TIMER3) = (speed) * 0.01f * BRUSH_PWM_PERIOD; }while(0)
#define cBrushSideSetSpeed(speed) do{ TIMER_CH3CV(TIMER3) = (speed) * 0.01f * BRUSH_PWM_PERIOD; }while(0)




void vBrushInit(void);

#endif
